import request from '@/utils/request'

// 码号收入整体趋势
export function overallTrend(query) {
    return request({
        url: '/specialTopic/overallTrend',
        method: 'get',
        params: query
    })
}

// 码号收入环比表格
export function overallTrendhb(query) {
    return request({
        url: '/specialTopic/overallTrendhb',
        method: 'get',
        params: query
    })
}

// 码号收入 – 经营单元增长情况
export function growthSituation(query) {
    return request({
        url: '/businessUnit/growthSituation',
        method: 'get',
        params: query
    })
}

// 码号收入 - 经营单元存量收入保有率
export function penetration(query) {
    return request({
        url: '/businessUnit/penetration',
        method: 'get',
        params: query
    })
}

// 码号收入 – 分经营单元
export function growthTb(query) {
    return request({
        url: '/businessUnit/growthTb',
        method: 'get',
        params: query
    })
}

// 码号-经营单元两年对比(分县)
export function pointCounty(query) {
    return request({
        url: '/businessUnit/pointCounty',
        method: 'get',
        params: query
    })
}

// 码号收入分客户群
export function mahaoCustomerType(query) {
    return request({
        url: '/specialTopic/mahaoCustomerType',
        method: 'get',
        params: query
    })
}

// 码号收入分客户表格
export function mahaoCustomerTypetable(query) {
    return request({
        url: '/specialTopic/mahaoCustomerTypetable',
        method: 'get',
        params: query
    })
}

// 码号收入--按科目
export function subjects(query) {
    return request({
        url: '/category/subjects',
        method: 'get',
        params: query
    })
}

// 码号收入--按来源
export function source(query) {
    return request({
        url: '/category/source',
        method: 'get',
        params: query
    })
}

// 码号-支局环比TOP
export function c5top(query) {
    return request({
        url: '/top/c5top',
        method: 'get',
        params: query
    })
}

// 码号-客户环比TOP
export function custtop(query) {
    return request({
        url: '/top/custtop',
        method: 'get',
        params: query
    })
}

// 码号-大颗粒资产环比TOP
export function assettop(query) {
    return request({
        url: '/top/assettop',
        method: 'get',
        params: query
    })
}

// 码号收入-宽带专线科目收入分析
export function bline(query) {
    return request({
        url: '/broadbandLine/bline',
        method: 'get',
        params: query
    })
}

// 码号收入公众政企科目环比/公众政企科目同比 ,最大账期
export function maxacctMonth(query) {
    return request({
        url: '/specialTopic/maxacctMonth',
        method: 'get',
        params: query
    })
}

// 码号收入公众政企科目环比/公众政企科目同比
export function subjectComparison(query) {
    return request({
        url: '/specialTopic/subjectComparison',
        method: 'get',
        params: query
    })
}

// 码号收入公众政企科目环比/公众政企科目同比（文字如果code等于1就是环比 否则是同比数据）
export function subjectContent(query) {
    return request({
        url: '/specialTopic/subjectContent',
        method: 'get',
        params: query
    })
}

// 台阶收入-整体趋势
export function stepOverall(query) {
    return request({
        url: '/step/overall',
        method: 'get',
        params: query
    })
}
// 台阶收入 – 分来源和细项
export function stepDetail(query) {
    return request({
        url: '/step/detail',
        method: 'get',
        params: query
    })
}
// 台阶收入-经营单元增长情况
export function stepUnitgrouth(query) {
    return request({
        url: '/step/unitgrouth',
        method: 'get',
        params: query
    })
}
// 台阶收入 – 分经营单元（同比表）
export function stepSubtable(query) {
    return request({
        url: '/step/subtable',
        method: 'get',
        params: query
    })
}
// 台阶收入 – 分经营单元（趋势图）
export function stepSubmap(query) {
    return request({
        url: '/step/submap',
        method: 'get',
        params: query
    })
}
